﻿/*CREATE TRIGGER [dbo].[Cultivos_DeletionTrigger] 
    ON [Cultivos] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Cultivos_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[CultivoGuid] = [Cultivos_Tombstone].[CultivoGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Cultivos_Tombstone] 
    ([CultivoGuid], DeletionDate)
    SELECT [CultivoGuid], GETUTCDATE()
    FROM deleted 
END*/